package com.k2091.washcar.controller;


import com.k2091.washcar.entity.Knowledge;
import com.k2091.washcar.service.IKnowledgeService;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author author
 * @since 2021-06-01
 */
@RestController
@RequestMapping("/knowledge")
public class KnowledgeController {

    @Resource
    private IKnowledgeService iKnowledgeService;


    @RequestMapping("/message")
    public List<Knowledge> message(){
        List<Knowledge> list =  iKnowledgeService.list();
//        System.out.println(list);
        return list;
    }

}
